<!DOCTYPE html>
<!-- saved from url=(0041)http://1618.com/Home/Center/tradeLog.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/page.css">
<include file="./Public/public/public.html" />

 <script>
     $(document).ready(function(){
         $('#duration,#category').change(function () {
             document.forms['queryForm'].submit();
         });
     });
 </script>

</head>
<body>


<!--pc头部-->
<include file="./Public/public/top.html" />
<!--pc头部结束-->
<!--mobile头部-->
<include file="./Public/public/mobileTop.html" />
<!--mobile头部结束-->
<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
     <include file="./Public/public/centerLeft.html" />
    <div class="right" ms-controller="right" style="min-height: 882px;">
        <h3>交易记录
            <div class="sub">
                <span class="field">交易金额:<span class="red06">{$trade}</span>元</span>
            </div>
        </h3>
        <div class="split-dot mt10 mb10">
            <form action="{:U('Translog/index')}" method="post" id="queryForm">
            	<input type="hidden" id="categoryStar" value="{$category}" />
            	<input type="hidden" id="durationStar" value="{$duration}" />
                <div class="filter">
                    <select name="category" id="category"> 
                    </select> 
                </div>
                <script>
				$(function(){
					$.ajax({
	                    url:"{:U('Translog/getDomainTypeList')}",
	                    type:"GET",
	                    success:function(resp){
	                    	var html="<option value='' selected='selected'>全部</option>";
	                    	$.each(resp,function(n,value) {
	                    		html=html+"<option value='"+value.id+"'>"+value.name+"</option>";
	                         });
	                    	$("#category").html(html);
	                    	  $("#category").find("option[value="+$("#categoryStar").val()+"]").attr("selected",true);
	                    }
	                }).fail(function(){
	                    isSigning = false;
	                });
				})
			</script>
                <div class="filter">
                    <select name="duration" id="duration"> 
	                    <option value="" selected='selected'>全部时间段</option>
	                    <option value="1">今日</option>
	                    <option value="7">最近7天</option>
	                    <option value="30">最近1月</option>
                    </select> 
                </div>
            </form>
            <div class="clr"></div>
        </div>
        <div class="table-wrappper">
            <div class="table table-w200">
                <div class="th">
                    <div class="td w10"><span class="ml10">交易类型</span></div>
                    <div class="td w15"><span class="ml10">时间</span></div>
                    <div class="td w25"><span class="ml10">域名品种</span></div>
                    <div class="td w10"><span class="ml10">成交单价</span></div>
                    <div class="td w10"><span class="ml10">数量</span></div>
                    <div class="td w10"><span class="ml10">总价</span></div>
                    <div class="td w10"><span class="ml10">手续费</span></div>
                    <div class="td w10"><span class="ml10">实际金额</span></div>
                    <div class="clr"></div>
                </div>
                <if condition="$count neq 0">
						<volist name="list" id="vo">
							<div class="tr domain">
								<div class="td w10">
			                     	<span class="ml10">
			      						  <if condition="$vo.sellerid eq $_SESSION['uid']">
			                 				卖出
					                 	  <elseif condition="$vo.buyerid eq $_SESSION['uid']"/> 
									    		买入
								   		  </if>           
			                     	</span>
		                     	</div>
			                     <div class="td w15"><span class="ml10">{$vo.createdate}</span></div>
			                     <div class="td w25"><span class="ml10">{$vo.name}</span></div>
			                     <div class="td w10"><span class="ml10">{$vo.price}</span></div>
			                     <div class="td w10"><span class="ml10">{$vo.trans_number}</span></div>
		                     	 <div class="td w10"><span class="ml10">{$vo.totel_price}</span></div>
            			         <div class="td w10"><span class="ml10">{$vo.trans_fee}</span></div>
            			         <div class="td w10"><span class="ml10">{$vo.actual_price}</span></div>
			                     <div class="clr"></div>
			                </div>
						</volist>
				<else/>
					<div class="empty" style="height:400px;"></div> 
				</if>
				<div class="tr">
						<div class="td ">
							<div class="pages"><span>共<font>{$count}</font>条记录,当前第{$page}页</span>
							 <if condition="$page eq 1">
							         上一页&nbsp;&nbsp;&nbsp;
							 <else />
							    <a href="{$app_path}/translog/index/page/{$page-1}.html">上一页</a>&nbsp;&nbsp;&nbsp;
							 </if>
							 
							  <if condition="$page eq $pageNum">
							         下一页&nbsp;&nbsp;&nbsp;
							 <else />
								<a href="{$app_path}/translog/index/page/{$page+1}.html">下一页</a></div>&nbsp;&nbsp;
							 </if>
							 
						</div>
						<div class="clr"></div>
					</div>
             </div>
        </div>
        <div class="pt10 pb10">
            <div class="dataTables_paginate paging_full_numbers">
                <div>
                                    </div>
            </div>
        </div>
    </div>

        <div class="clr"></div>
    </div>
</div>
<include file="./Public/public/footer.html" />
<script>
$(document).ready(function(){
  $("#category").find("option[value="+$("#categoryStar").val()+"]").attr("selected",true);
  $("#duration").find("option[value="+$("#durationStar").val()+"]").attr("selected",true);
});
</script>
</body></html>